#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>

void judge_the_triangle(int a, int b, int c)
{
	if (a != b || b != c || a != b)
	{
		printf("Ordinary triangle!");
	}
	else if (a == b && b == c && c == a)
	{
		printf("Equilateral triangle!");
	}
	else
	{
		printf("Isosceles triangle!");
	}
}

int main()
{
	int a = 0;
	int b = 0;
	int c = 0;
	scanf("%d %d %d", &a, &b, &c);

	if (((a + b) > c)&&((a + c) > b)&&((c + b) > a))
	{
		judge_the_triangle(a, b, c);
	}
	else
	{
		printf("Not a triangle!");
	}
	return 0;

}